//
//  WKScanView.h
//  ourToken
//
//  Created by wakeup on 2018/6/19.
//  Copyright © 2018年 ourtoken. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface WKScanView : UIView

//手电筒开关按钮
@property (nonatomic, strong) UIButton *flashlightBtn;

//开始扫描动画
- (void)stratScanLineAnimation;

//停止扫描动画
- (void)pauseScanLineAnimation;

/**
 显示手电筒
 @param animated 是否附带动画
 */
- (void)showFlashlightWithAnimated:(BOOL)animated;

/**
 隐藏手电筒
 @param animated 是否附带动画
 */
- (void)hideFlashlightWithAnimated:(BOOL)animated;

/**
 设置手电筒开关
 @param on YES:开  NO:关
 */
- (void)setFlashlightOn:(BOOL)on;

@end
